package com.hsylient.javase.chapter02.demo02.a;

import org.junit.Test;

public class TestOrdinaryClass {

    @Test
    public void testOrd() {
        // 在创建一个普通内部类对象时首先需要创建其外部类对象
        Father.Son son = new Father().new Son();
        son.eat();
        System.out.println(son.getClass());
    }

    @Test
    public void testStatic() {
        Father.Child child = new Father.Child();
        child.sleep();
        System.out.println(child.getClass());
    }
}
